import Vue from 'vue';
import VueRouter from "vue-router";
import Aside from '@/components/Aside'
Vue.use(VueRouter);
import Recommanded from '@/Views/Recommanded';
import Post from '@/Views/Post';
import TOC from '@/Views/Post/TOC';
const router = new VueRouter({
    mode:'history',
    routes:[
        {path:'/',components:{default:Recommanded,aside:Aside}},
        {name:'post' ,path:'/post/:id',components:{
            default:Post,
            aside:TOC,
        }},
    ]
})
export default router